/**
 * 
 */
package com.weidft.dal.basedata.dao.ibatis;

import org.springframework.dao.DataAccessException;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;

import com.weidft.dal.basedata.dao.ISupplierInfoDAO;
import com.weidft.dal.basedata.dataobject.SupplierInfoDO;

/**
 * 
 */
public class IBatisSupplierInfoDAO extends SqlMapClientDaoSupport implements
		ISupplierInfoDAO {

	private static final String QUERY_BY_ID = "SUPPLIE_INFO.QUERY_BY_ID";

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.wd.dal.basedata.dao.ISupplieInfoDAO#getSupplieInfoById(int)
	 */
	public SupplierInfoDO getSupplieInfoById(int id) throws DataAccessException {
		return (SupplierInfoDO) this.getSqlMapClientTemplate().queryForObject(
				QUERY_BY_ID, id);
	}

}
